﻿// Type: GandA.Component.DataAccess.SQLServer.SQLException
// Assembly: GandA.Component.DataAccess, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// Assembly location: C:\CodePlex\CLab\CLab\DLLs\GandA.Component.DataAccess.dll

using System;
using System.Runtime.Serialization;

namespace GandA.Component.DataAccess.SQLServer
{
    public class SQLException : Exception, ISerializable
    {
        public SQLException()
        {
        }

        public SQLException(string message)
            : base(message)
        {
            Log.Log.WriteLog(message, "DataAccess");
            message = "Error en acceso  datos";
        }

        public SQLException(string message, Exception inner)
            : base(message, inner)
        {
            Log.Log.WriteLog(inner, "DataAccess");
        }

        protected SQLException(SerializationInfo info, StreamingContext context)
        {
        }
    }
}
